import BasicLayout from '@/layouts/basic-layout'

const meta = {
  auth: true
}

const pre = 'project-'

export default {
  path: '/project',
  name: 'project',
  redirect: {
    name: `${pre}list`
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'list',
      name: `${pre}list`,
      meta: {
        ...meta,
        title: '项目'
      },
      component: () => import('@/pages/project/list')
    },
    {
      path: 'user',
      name: `${pre}user`,
      meta: {
        ...meta,
        title: '员工'
      },
      component: () => import('@/pages/project/user')
    },
    {
      path: 'role',
      name: `${pre}role`,
      meta: {
        ...meta,
        title: '角色'
      },
      component: () => import('@/pages/project/role')
    },
    {
      path: 'development/action',
      name: `${pre}development/action`,
      meta: {
        ...meta,
        title: '动作'
      },
      component: () => import('@/pages/project/development/action')
    },
    {
      path: 'development/menu',
      name: `${pre}development/menu`,
      meta: {
        ...meta,
        title: '菜单'
      },
      component: () => import('@/pages/project/development/menu')
    },
  ]
}
